package com.db.springcloud.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class User implements Serializable {
    private int id;
    private String name;
    private String password;
}

/*
链式写法
    User user = new User();
    user.setName("admin").setPassword("123");
 */